/*用于暴露一个store对象，整个应用只有一个store对象*/

// 引入createStore,创建redux中最核心的store对象
import {applyMiddleware, createStore} from 'redux'
// 引入redux-thunk，用于支持异步action
import thunk from "redux-thunk";
import allReducer from "./reducers";


// 暴露 store
export default createStore(allReducer, applyMiddleware(thunk))


